package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.pojo.Address;

import java.util.List;
import java.util.Map;

/*
地址服务层
 */
public interface AddressService {
    //查询页面
    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString);
    //根据id删除
    void deleteById(Integer id);
    //修改
    void edit(Address address);

    //添加
    void add(Address address);
    //根据id查询
    Address findById(Integer id);
    //查找地图
    List<String> findAllmap();

    List<Map<String, Object>> findAllAddress();

}
